package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色权限
 * </p>
 *
 * @author yeweilin
 * @since 2022-02-23
 */
@TableName("acl_role_permission")

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String roleId;

    private String permissionId;
    @TableLogic
    private Boolean isDeleted;


    @TableField(fill =FieldFill.INSERT)
    private LocalDateTime gmtCreate;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
